package kz.pompei.OneGwt.remote;

import java.util.List;
import java.util.Set;

import kz.pompei.OneGwt.cmodel.PersonDetails;
import kz.pompei.OneGwt.cmodel.PersonRecord;
import kz.pompei.OneGwt.cmodel.SimpleRecord;

import com.google.gwt.user.client.rpc.RemoteService;

public interface PersonroleManagerService extends RemoteService {
  List<PersonRecord> getPersonList();
  
  PersonDetails getPersonDetails(String personId);
  
  PersonRecord savePerson(PersonDetails details);
  
  List<SimpleRecord> getApplicationList();
  
  List<SimpleRecord> getRoleList(String applicationId);
  
  Set<String> getRoleIds(String personId, String applicationId);
  
  void addRole(String personId, String applicationId, String roleId);
  
  void deleteRole(String personId, String applicationId, String roleId);
}
